<!DOCTYPE html><html><head><title>Ext.data.TreeStore | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
<style type="text/css">.head-band { display: none; }
.header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
.doc-tab .members .member a.more { background-color: #efefef; }
</style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
</head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit 
<a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">

    req = {
        liveURL: '.',
        standAloneMode: true,
        origDocClass: 'Ext.data.TreeStore',
        docClass: 'Ext.data.TreeStore',
        docReq: 'Ext.data.TreeStore',
        version: '4.0',
        baseURL: '.',
        baseDocURL: '.',
        baseProdURL: '.'
    };

    clsInfo = {};



</script>

<script type="text/javascript" src="../search.js"></script>
<!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
<script type="text/javascript" src="../class_tree.js"></script>
<script type="text/javascript" src="../class_doc.js"></script>
<script type="text/javascript">
    req.source = 'TreeStore.html#Ext-data.TreeStore';
    clsInfo = {"methods":["addEvents","addListener","addManagedListener","capture","clearListeners","clearManagedListeners","enableBubble","fireEvent","getNewRecords","getNodeById","getProxy","getRootNode","getSortState","getUpdatedRecords","hasListener","initSortable","isLoading","load","observe","on","relayEvents","releaseCapture","removeListener","removeManagedListener","resumeEvents","setProxy","setRootNode","sort","suspendEvents","sync","un"],"cfgs":["autoLoad","autoSync","clearOnLoad","defaultRootId","defaultRootProperty","fields","folderSort","listeners","nodeParam","proxy","storeId"],"properties":["","batchUpdateMode","defaultProxyType","defaultSortDirection","fields","filterOnLoad","filters","isDestroyed","isSortable","removeAll","sortOnLoad","sortRoot","sorters"],"events":["add","append","beforeappend","beforecollapse","beforeexpand","beforeinsert","beforeload","beforemove","beforeremove","beforesync","clear","collapse","datachanged","expand","insert","load","move","remove","rootchange","sort","update"],"subclasses":[]};
    Ext.onReady(function() {
        Ext.create('Docs.classPanel');
    });
</script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/TreeStore.html#Ext-data.TreeStore" target="_blank">Ext.data.TreeStore</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><pre class="subclasses"><h4>Hierarchy</h4><div class="subclass f"><a href="Ext.data.AbstractStore.html" rel="Ext.data.AbstractStore" class="cls docClass">Ext.data.AbstractStore</a><div class="subclass"><strong>Ext.data.TreeStore</strong></div></div><h4>Mixins</h4><div class="mixin"><a href="Ext.util.Observable.html" rel="Ext.util.Observable" class="cls docClass">Ext.util.Observable</a></div><div class="mixin"><a href="Ext.util.Sortable.html" rel="Ext.util.Sortable" class="cls docClass">Ext.util.Sortable</a></div></pre><p>The TreeStore is a store implementation that is backed by by an <a href="Ext.data.Tree.html" rel="Ext.data.Tree" class="docClass">Ext.data.Tree</a>.
It provides convenience methods for loading nodes, as well as the ability to use
the hierarchical tree structure combined with a store. This class is generally used
in conjunction with <a href="Ext.tree.Panel.html" rel="Ext.tree.Panel" class="docClass">Ext.tree.Panel</a>. This class also relays many events from
the Tree for convenience.</p>

<h2>Using Models</h2>

<p>If no Model is specified, an implicit model will be created that implements <a href="Ext.data.NodeInterface.html" rel="Ext.data.NodeInterface" class="docClass">Ext.data.NodeInterface</a>.
The standard Tree fields will also be copied onto the Model for maintaining their state.</p>

<h2>Reading Nested Data</h2>

<p>For the tree to read nested data, the <a href="Ext.data.Reader.html" rel="Ext.data.Reader" class="docClass">Ext.data.Reader</a> must be configured with a root property,
so the reader can find nested data for each node. If a root is not specified, it will default to
'children'.</p>
<div class="members"><div class="m-cfgs"><div class="definedBy">Defined By</div><a name="configs"></a><h3 class="cfg p">Config Options</h3><h4 class="cfgGroup">Other Configs</h4><div id="config-autoLoad" class="member f inherited"><a href="Ext.data.TreeStore.html#config-autoLoad" rel="config-autoLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoLoad" class="viewSource">view source</a></div><a name="autoLoad"></a><a name="config-autoLoad"></a><a href="Ext.data.TreeStore.html#" rel="config-autoLoad" class="cls expand">autoLoad</a><span> : Boolean/Object</span></div><div class="description"><div class="short">If data is not specified, and if autoLoad is true or an Object, this store's load method
is automatically called afte...</div><div class="long"><p>If data is not specified, and if autoLoad is true or an Object, this store's load method
is automatically called after creation. If the value of autoLoad is an Object, this Object will be passed to the store's
load method. Defaults to false.</p>
</div></div></div><div id="config-autoSync" class="member inherited"><a href="Ext.data.TreeStore.html#config-autoSync" rel="config-autoSync" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoSync" class="viewSource">view source</a></div><a name="autoSync"></a><a name="config-autoSync"></a><a href="Ext.data.TreeStore.html#" rel="config-autoSync" class="cls expand">autoSync</a><span> : Boolean</span></div><div class="description"><div class="short"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
Defaults to false.</p>
</div><div class="long"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
Defaults to false.</p>
</div></div></div><div id="config-clearOnLoad" class="member ni"><a href="Ext.data.TreeStore.html#config-clearOnLoad" rel="config-clearOnLoad" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-cfg-clearOnLoad" class="viewSource">view source</a></div><a name="clearOnLoad"></a><a name="config-clearOnLoad"></a><a href="Ext.data.TreeStore.html#" rel="config-clearOnLoad" class="cls expand">clearOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short"><p>(optional) Default to true. Remove previously existing
child nodes before loading.</p>
</div><div class="long"><p>(optional) Default to true. Remove previously existing
child nodes before loading.</p>
</div></div></div><div id="config-defaultRootId" class="member ni"><a href="Ext.data.TreeStore.html#config-defaultRootId" rel="config-defaultRootId" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-cfg-defaultRootId" class="viewSource">view source</a></div><a name="defaultRootId"></a><a name="config-defaultRootId"></a><a href="Ext.data.TreeStore.html#" rel="config-defaultRootId" class="cls expand">defaultRootId</a><span> : String</span></div><div class="description"><div class="short"><p>The default root id. Defaults to 'root'</p>
</div><div class="long"><p>The default root id. Defaults to 'root'</p>
</div></div></div><div id="config-defaultRootProperty" class="member ni"><a href="Ext.data.TreeStore.html#config-defaultRootProperty" rel="config-defaultRootProperty" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-cfg-defaultRootProperty" class="viewSource">view source</a></div><a name="defaultRootProperty"></a><a name="config-defaultRootProperty"></a><a href="Ext.data.TreeStore.html#" rel="config-defaultRootProperty" class="cls expand">defaultRootProperty</a><span> : String</span></div><div class="description"><div class="short"><p>The root property to specify on the reader if one is not explicitly defined.</p>
</div><div class="long"><p>The root property to specify on the reader if one is not explicitly defined.</p>
</div></div></div><div id="config-fields" class="member inherited"><a href="Ext.data.TreeStore.html#config-fields" rel="config-fields" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-fields" class="viewSource">view source</a></div><a name="fields"></a><a name="config-fields"></a><a href="Ext.data.TreeStore.html#" rel="config-fields" class="cls expand">fields</a><span> : Array</span></div><div class="description"><div class="short">This may be used in place of specifying a model configuration. The fields should be a
set of Ext.data.Field configura...</div><div class="long"><p>This may be used in place of specifying a <a href="Ext.data.TreeStore.html#model" rel="Ext.data.TreeStore#model" class="docClass">model</a> configuration. The fields should be a
set of <a href="Ext.data.Field.html" rel="Ext.data.Field" class="docClass">Ext.data.Field</a> configuration objects. The store will automatically create a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a>
with these fields. In general this configuration option should be avoided, it exists for the purposes of
backwards compatibility. For anything more complicated, such as specifying a particular id property or
assocations, a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> should be defined and specified for the <a href="Ext.data.TreeStore.html#model" rel="Ext.data.TreeStore#model" class="docClass">model</a> config.</p>
</div></div></div><div id="config-folderSort" class="member ni"><a href="Ext.data.TreeStore.html#config-folderSort" rel="config-folderSort" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-cfg-folderSort" class="viewSource">view source</a></div><a name="folderSort"></a><a name="config-folderSort"></a><a href="Ext.data.TreeStore.html#" rel="config-folderSort" class="cls expand">folderSort</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Set to true to automatically prepend a leaf sorter (defaults to <tt>undefined</tt>)</p>
</div><div class="long"><p>Set to true to automatically prepend a leaf sorter (defaults to <tt>undefined</tt>)</p>
</div></div></div><div id="config-listeners" class="member inherited"><a href="Ext.data.TreeStore.html#config-listeners" rel="config-listeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-cfg-listeners" class="viewSource">view source</a></div><a name="listeners"></a><a name="config-listeners"></a><a href="Ext.data.TreeStore.html#" rel="config-listeners" class="cls expand">listeners</a><span> : Object</span></div><div class="description"><div class="short">(optional) A config object containing one or more event handlers to be added to this
object during initialization.  T...</div><div class="long"><p>(optional) <p>A config object containing one or more event handlers to be added to this
object during initialization.  This should be a valid listeners config object as specified in the
<a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a> example for attaching multiple handlers at once.</p></p>

<br><p><b><u>DOM events from ExtJs <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a></u></b></p>


<br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this


<p>is usually only done when extra value can be added. For example the <a href="Ext.view.View.html" rel="Ext.view.View" class="docClass">DataView</a>'s
<b><code><a href="Ext.view.View.html#click" rel="Ext.view.View#click" class="docClass">click</a></code></b> event passing the node clicked on. To access DOM
events directly from a child element of a Component, we need to specify the <code>element</code> option to
identify the Component property to add a DOM listener to:</p>

<pre><code>new Ext.panel.Panel({
    width: 400,
    height: 200,
    dockedItems: [{
        xtype: 'toolbar'
    }],
    listeners: {
        click: {
            element: 'el', //bind to the underlying el property on the panel
            fn: function(){ console.log('click el'); }
        },
        dblclick: {
            element: 'body', //bind to the underlying body property on the panel
            fn: function(){ console.log('dblclick body'); }
        }
    }
});
</code></pre>


<p></p></p>
</div></div></div><div id="config-nodeParam" class="member ni"><a href="Ext.data.TreeStore.html#config-nodeParam" rel="config-nodeParam" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-cfg-nodeParam" class="viewSource">view source</a></div><a name="nodeParam"></a><a name="config-nodeParam"></a><a href="Ext.data.TreeStore.html#" rel="config-nodeParam" class="cls expand">nodeParam</a><span> : String</span></div><div class="description"><div class="short"><p>The name of the parameter sent to the server which contains
the identifier of the node. Defaults to <tt>'node'</tt>.</p>
</div><div class="long"><p>The name of the parameter sent to the server which contains
the identifier of the node. Defaults to <tt>'node'</tt>.</p>
</div></div></div><div id="config-proxy" class="member inherited"><a href="Ext.data.TreeStore.html#config-proxy" rel="config-proxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-proxy" class="viewSource">view source</a></div><a name="proxy"></a><a name="config-proxy"></a><a href="Ext.data.TreeStore.html#" rel="config-proxy" class="cls expand">proxy</a><span> : String/Ext.data.proxy.Proxy/Object</span></div><div class="description"><div class="short">The Proxy to use for this Store. This can be either a string, a config
object or a Proxy instance - see setProxy for ...</div><div class="long"><p>The Proxy to use for this Store. This can be either a string, a config
object or a Proxy instance - see <a href="Ext.data.TreeStore.html#setProxy" rel="Ext.data.TreeStore#setProxy" class="docClass">setProxy</a> for details.</p>
</div></div></div><div id="config-storeId" class="member inherited"><a href="Ext.data.TreeStore.html#config-storeId" rel="config-storeId" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-storeId" class="viewSource">view source</a></div><a name="storeId"></a><a name="config-storeId"></a><a href="Ext.data.TreeStore.html#" rel="config-storeId" class="cls expand">storeId</a><span> : String</span></div><div class="description"><div class="short">Optional unique identifier for this store. If present, this Store will be registered with
the Ext.data.StoreManager, ...</div><div class="long"><p>Optional unique identifier for this store. If present, this Store will be registered with
the <a href="Ext.data.StoreManager.html" rel="Ext.data.StoreManager" class="docClass">Ext.data.StoreManager</a>, making it easy to reuse elsewhere. Defaults to undefined.</p>
</div></div></div></div><div class="m-properties"><a name="properties"></a><div class="definedBy">Defined By</div><h3 class="prp p">Properties</h3><div id="property-" class="member f ni"><a href="Ext.data.TreeStore.html#property-" rel="property-" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-property-" class="viewSource">view source</a></div><a></a><a name="property-"></a><a href="Ext.data.TreeStore.html#" rel="property-" class="cls expand"></a><span> : Object</span></div><div class="description"><div class="short">Loop over each record returned from the server. Assume they are
returned in order of how they were sent. If we find a...</div><div class="long"><p>Loop over each record returned from the server. Assume they are
returned in order of how they were sent. If we find a matching
record, replace it with the newly created one.</p>
</div></div></div><div id="property-batchUpdateMode" class="member inherited"><a href="Ext.data.TreeStore.html#property-batchUpdateMode" rel="property-batchUpdateMode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-batchUpdateMode" class="viewSource">view source</a></div><a name="batchUpdateMode"></a><a name="property-batchUpdateMode"></a><a href="Ext.data.TreeStore.html#" rel="property-batchUpdateMode" class="cls expand">batchUpdateMode</a><span> : String</span></div><div class="description"><div class="short">Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
internal...</div><div class="long"><p>Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
internal representation of the data after each operation of the batch has completed, 'complete' will wait until
the entire batch has been completed before updating the Store's data. 'complete' is a good choice for local
storage proxies, 'operation' is better for remote proxies, where there is a comparatively high latency.</p>
</div></div></div><div id="property-defaultProxyType" class="member inherited"><a href="Ext.data.TreeStore.html#property-defaultProxyType" rel="property-defaultProxyType" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-defaultProxyType" class="viewSource">view source</a></div><a name="defaultProxyType"></a><a name="property-defaultProxyType"></a><a href="Ext.data.TreeStore.html#" rel="property-defaultProxyType" class="cls expand">defaultProxyType</a><span> : String</span></div><div class="description"><div class="short"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
</div><div class="long"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
</div></div></div><div id="property-defaultSortDirection" class="member inherited"><a href="Ext.data.TreeStore.html#property-defaultSortDirection" rel="property-defaultSortDirection" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-defaultSortDirection" class="viewSource">view source</a></div><a name="defaultSortDirection"></a><a name="property-defaultSortDirection"></a><a href="Ext.data.TreeStore.html#" rel="property-defaultSortDirection" class="cls expand">defaultSortDirection</a><span> : String</span></div><div class="description"><div class="short"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
</div><div class="long"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
</div></div></div><div id="property-fields" class="member ni"><a href="Ext.data.TreeStore.html#property-fields" rel="property-fields" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-property-fields" class="viewSource">view source</a></div><a name="fields"></a><a name="property-fields"></a><a href="Ext.data.TreeStore.html#" rel="property-fields" class="cls expand">fields</a><span> : Object</span></div><div class="description"><div class="short">If we have no fields declare for the store, add some defaults.
These will be ignored if a model is explicitly specifi...</div><div class="long"><p>If we have no fields declare for the store, add some defaults.
These will be ignored if a model is explicitly specified.</p>
</div></div></div><div id="property-filterOnLoad" class="member inherited"><a href="Ext.data.TreeStore.html#property-filterOnLoad" rel="property-filterOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filterOnLoad" class="viewSource">view source</a></div><a name="filterOnLoad"></a><a name="property-filterOnLoad"></a><a href="Ext.data.TreeStore.html#" rel="property-filterOnLoad" class="cls expand">filterOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
De...</div><div class="long"><p>If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
Defaults to true, ignored if <a href="Ext.data.TreeStore.html#remoteFilter" rel="Ext.data.TreeStore#remoteFilter" class="docClass">remoteFilter</a> is true</p>
</div></div></div><div id="property-filters" class="member inherited"><a href="Ext.data.TreeStore.html#property-filters" rel="property-filters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filters" class="viewSource">view source</a></div><a name="filters"></a><a name="property-filters"></a><a href="Ext.data.TreeStore.html#" rel="property-filters" class="cls expand">filters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
</div><div class="long"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
</div></div></div><div id="property-isDestroyed" class="member inherited"><a href="Ext.data.TreeStore.html#property-isDestroyed" rel="property-isDestroyed" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-isDestroyed" class="viewSource">view source</a></div><a name="isDestroyed"></a><a name="property-isDestroyed"></a><a href="Ext.data.TreeStore.html#" rel="property-isDestroyed" class="cls expand">isDestroyed</a><span> : Boolean</span></div><div class="description"><div class="short">True if the Store has already been destroyed via destroyStore. If this is true, the reference to Store should be dele...</div><div class="long"><p>True if the Store has already been destroyed via <a href="Ext.data.TreeStore.html#destroyStore" rel="Ext.data.TreeStore#destroyStore" class="docClass">destroyStore</a>. If this is true, the reference to Store should be deleted
as it will not function correctly any more.</p>
</div></div></div><div id="property-isSortable" class="member inherited"><a href="Ext.data.TreeStore.html#property-isSortable" rel="property-isSortable" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-isSortable" class="viewSource">view source</a></div><a name="isSortable"></a><a name="property-isSortable"></a><a href="Ext.data.TreeStore.html#" rel="property-isSortable" class="cls expand">isSortable</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Flag denoting that this object is sortable. Always true.</p>
</div><div class="long"><p>Flag denoting that this object is sortable. Always true.</p>
</div></div></div><div id="property-removeAll" class="member inherited"><a href="Ext.data.TreeStore.html#property-removeAll" rel="property-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="property-removeAll"></a><a href="Ext.data.TreeStore.html#" rel="property-removeAll" class="cls expand">removeAll</a><span> : Object</span></div><div class="description"><div class="short">Removes all records from the store. This method does a "fast remove",
individual remove events are not called. The cl...</div><div class="long"><p>Removes all records from the store. This method does a "fast remove",
individual remove events are not called. The <a href="Ext.data.TreeStore.html#clear" rel="Ext.data.TreeStore#clear" class="docClass">clear</a> event is
fired upon completion.</p>
</div></div></div><div id="property-sortOnLoad" class="member inherited"><a href="Ext.data.TreeStore.html#property-sortOnLoad" rel="property-sortOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-sortOnLoad" class="viewSource">view source</a></div><a name="sortOnLoad"></a><a name="property-sortOnLoad"></a><a href="Ext.data.TreeStore.html#" rel="property-sortOnLoad" class="cls expand">sortOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
De...</div><div class="long"><p>If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
Defaults to true, igored if <a href="Ext.data.TreeStore.html#remoteSort" rel="Ext.data.TreeStore#remoteSort" class="docClass">remoteSort</a> is true</p>
</div></div></div><div id="property-sortRoot" class="member inherited"><a href="Ext.data.TreeStore.html#property-sortRoot" rel="property-sortRoot" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sortRoot" class="viewSource">view source</a></div><a name="sortRoot"></a><a name="property-sortRoot"></a><a href="Ext.data.TreeStore.html#" rel="property-sortRoot" class="cls expand">sortRoot</a><span> : String</span></div><div class="description"><div class="short"><p>The property in each item that contains the data to sort. (defaults to null)</p>
</div><div class="long"><p>The property in each item that contains the data to sort. (defaults to null)</p>
</div></div></div><div id="property-sorters" class="member inherited"><a href="Ext.data.TreeStore.html#property-sorters" rel="property-sorters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sorters" class="viewSource">view source</a></div><a name="sorters"></a><a name="property-sorters"></a><a href="Ext.data.TreeStore.html#" rel="property-sorters" class="cls expand">sorters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
</div><div class="long"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
</div></div></div></div><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-addEvents" class="member f inherited"><a href="Ext.data.TreeStore.html#method-addEvents" rel="method-addEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addEvents" class="viewSource">view source</a></div><a name="addEvents"></a><a name="method-addEvents"></a><a href="Ext.data.TreeStore.html#" rel="method-addEvents" class="cls expand">addEvents</a>(
<span class="pre">Object/String o, String </span>)
 : void</div><div class="description"><div class="short"><p>Adds the specified events to the list of events which this Observable may fire.</p>
</div><div class="long"><p>Adds the specified events to the list of events which this Observable may fire.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object/String<div class="sub-desc"><p>Either an object with event names as properties with a value of <code>true</code>
or the first event name string if multiple event names are being passed as separate parameters.</p>
</div></li><li><span class="pre"></span> : String<div class="sub-desc"><p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.
Usage:</p>

<pre><code>this.addEvents('storeloaded', 'storecleared');
</code></pre>

</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-addListener" class="member inherited"><a href="Ext.data.TreeStore.html#method-addListener" rel="method-addListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addListener" class="viewSource">view source</a></div><a name="addListener"></a><a name="method-addListener"></a><a href="Ext.data.TreeStore.html#" rel="method-addListener" class="cls expand">addListener</a>(
<span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
 : void</div><div class="description"><div class="short"><p>Appends an event handler to this object.</p>
</div><div class="long"><p>Appends an event handler to this object.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to listen for. May also be an object who's property names are event names. See</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.
properties. This may contain any of the following properties:<ul>
<li><b>scope</b> : Object<div class="sub-desc">The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></div></li>
<li><b>delay</b> : Number<div class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</div></li>
<li><b>single</b> : Boolean<div class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</div></li>
<li><b>buffer</b> : Number<div class="sub-desc">Causes the handler to be scheduled to run in an <a href="Ext.util.DelayedTask.html" rel="Ext.util.DelayedTask" class="docClass">Ext.util.DelayedTask</a> delayed
by the specified number of milliseconds. If the event fires again within that time, the original
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>
<li><b>target</b> : Observable<div class="sub-desc">Only call the handler if the event was fired on the target Observable, <i>not</i>
if the event was bubbled up from a child Observable.</div></li>
<li><b>element</b> : String<div class="sub-desc"><b>This option is only valid for listeners bound to <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a>.</b>
The name of a Component property which references an element to add a listener to.</p>

<p>This option is useful during Component construction to add DOM event listeners to elements of <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a> which
will exist only after the Component is rendered. For example, to add a click listener to a Panel's body:
<pre><code>new Ext.panel.Panel({
    title: 'The title',
    listeners: {
        click: this.handlePanelClick,
        element: 'body'
    }
});
</code></pre></p>


<p>When added in this way, the options available are the options applicable to <a href="Ext.core.Element.html#addListener" rel="Ext.core.Element#addListener" class="docClass">Ext.core.Element.addListener</a></p>


<p></div></li>
</ul><br></p>

<p>
<b>Combining Options</b><br>
Using the options argument, it is possible to combine different types of listeners:<br>
<br>
A delayed, one-time listener.
<pre><code>myPanel.on('hide', this.handleClick, this, {
single: true,
delay: 100
});</code></pre>
<p>
<b>Attaching multiple handlers in 1 call</b><br>
The method also allows for a single argument to be passed which is a config object containing properties
which specify multiple events. For example:
<pre><code>myGridPanel.on({
    cellClick: this.onCellClick,
    mouseover: this.onMouseOver,
    mouseout: this.onMouseOut,
    scope: this // Important. Ensure "this" is correct during handler execution
});
</code></pre>.
<p>

</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-addManagedListener" class="member inherited"><a href="Ext.data.TreeStore.html#method-addManagedListener" rel="method-addManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addManagedListener" class="viewSource">view source</a></div><a name="addManagedListener"></a><a name="method-addManagedListener"></a><a href="Ext.data.TreeStore.html#" rel="method-addManagedListener" class="cls expand">addManagedListener</a>(
<span class="pre">Observable/Element item, Object/String ename, Function fn, Object scope, Object opt</span>)
 : void</div><div class="description"><div class="short"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
is destroyed.

</div><div class="long"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
is destroyed.

<h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable/Element<div class="sub-desc"><p>The item to which to add a listener/listeners.</p>
</div></li><li><span class="pre">ename</span> : Object/String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the handler function.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the scope (<code>this</code> reference) in which the handler function is executed.</p>
</div></li><li><span class="pre">opt</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the <a href="Ext.util.Observable.html#addListener" rel="Ext.util.Observable#addListener" class="docClass">addListener</a> options.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-capture" class="member inherited"><a href="Ext.data.TreeStore.html#method-capture" rel="method-capture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-capture" class="viewSource">view source</a></div><a name="capture"></a><a name="method-capture"></a><a href="Ext.data.TreeStore.html#" rel="method-capture" class="cls expand">capture</a>(
<span class="pre">Observable o, Function fn, [Object scope]</span>)
 : void</div><div class="description"><div class="short">Starts capture on the specified Observable. All events will be passed
to the supplied function with the event name + ...</div><div class="long"><p>Starts capture on the specified Observable. All events will be passed
to the supplied function with the event name + standard signature of the event
<b>before</b> the event is fired. If the supplied function returns false,
the event will not fire.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to capture events from.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call when an event is fired.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearListeners" class="member inherited"><a href="Ext.data.TreeStore.html#method-clearListeners" rel="method-clearListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearListeners" class="viewSource">view source</a></div><a name="clearListeners"></a><a name="method-clearListeners"></a><a href="Ext.data.TreeStore.html#" rel="method-clearListeners" class="cls expand">clearListeners</a> : void</div><div class="description"><div class="short"><p>Removes all listeners for this object including the managed listeners</p>
</div><div class="long"><p>Removes all listeners for this object including the managed listeners</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearManagedListeners" class="member inherited"><a href="Ext.data.TreeStore.html#method-clearManagedListeners" rel="method-clearManagedListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearManagedListeners" class="viewSource">view source</a></div><a name="clearManagedListeners"></a><a name="method-clearManagedListeners"></a><a href="Ext.data.TreeStore.html#" rel="method-clearManagedListeners" class="cls expand">clearManagedListeners</a> : void</div><div class="description"><div class="short"><p>Removes all managed listeners for this object.</p>
</div><div class="long"><p>Removes all managed listeners for this object.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-enableBubble" class="member inherited"><a href="Ext.data.TreeStore.html#method-enableBubble" rel="method-enableBubble" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-enableBubble" class="viewSource">view source</a></div><a name="enableBubble"></a><a name="method-enableBubble"></a><a href="Ext.data.TreeStore.html#" rel="method-enableBubble" class="cls expand">enableBubble</a>(
<span class="pre">String/Array events</span>)
 : void</div><div class="description"><div class="short">Enables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present....</div><div class="long"><p>Enables events fired by this Observable to bubble up an owner hierarchy by calling
<code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>


<p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>. The default
implementation in <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Ext.Component</a> returns the Component's immediate owner. But if a known target is required, this can be overridden to
access the required target more quickly.</p>


<p>Example:</p>


<pre><code>Ext.override(Ext.form.field.Base, {
//  Add functionality to Field&#39;s initComponent to enable the change event to bubble
initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {
    this.enableBubble('change');
}),

//  We know that we want Field&#39;s events to bubble directly to the FormPanel.
getBubbleTarget : function() {
    if (!this.formPanel) {
        this.formPanel = this.findParentByType('form');
    }
    return this.formPanel;
}
});

var myForm = new Ext.formPanel({
title: 'User Details',
items: [{
    ...
}],
listeners: {
    change: function() {
        // Title goes red if form has been modified.
        myForm.header.setStyle('color', 'red');
    }
}
});
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">events</span> : String/Array<div class="sub-desc"><p>The event name to bubble, or an Array of event names.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-fireEvent" class="member inherited"><a href="Ext.data.TreeStore.html#method-fireEvent" rel="method-fireEvent" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-fireEvent" class="viewSource">view source</a></div><a name="fireEvent"></a><a name="method-fireEvent"></a><a href="Ext.data.TreeStore.html#" rel="method-fireEvent" class="cls expand">fireEvent</a>(
<span class="pre">String eventName, Object... args</span>)
 : Boolean</div><div class="description"><div class="short">Fires the specified event with the passed parameters (minus the event name).


An event may be set to bubble up an Ob...</div><div class="long"><p>Fires the specified event with the passed parameters (minus the event name).</p>


<p>An event may be set to bubble up an Observable parent hierarchy (See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>)
by calling <a href="Ext.data.TreeStore.html#enableBubble" rel="Ext.data.TreeStore#enableBubble" class="docClass">enableBubble</a>.</p>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to fire.</p>
</div></li><li><span class="pre">args</span> : Object...<div class="sub-desc"><p>Variable number of parameters are passed to handlers.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>returns false if any of the handlers return false otherwise it returns true.</p>
</li></ul></div></div></div><div id="method-getNewRecords" class="member inherited"><a href="Ext.data.TreeStore.html#method-getNewRecords" rel="method-getNewRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getNewRecords" class="viewSource">view source</a></div><a name="getNewRecords"></a><a name="method-getNewRecords"></a><a href="Ext.data.TreeStore.html#" rel="method-getNewRecords" class="cls expand">getNewRecords</a> : Array</div><div class="description"><div class="short">Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
yet bee...</div><div class="long"><p>Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
yet been saved on this Store (this happens when adding a non-phantom record from another Store into this one)</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The Model instances</p>
</li></ul></div></div></div><div id="method-getNodeById" class="member ni"><a href="Ext.data.TreeStore.html#method-getNodeById" rel="method-getNodeById" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-method-getNodeById" class="viewSource">view source</a></div><a name="getNodeById"></a><a name="method-getNodeById"></a><a href="Ext.data.TreeStore.html#" rel="method-getNodeById" class="cls expand">getNodeById</a>(
<span class="pre">Object id</span>)
 : Ext.data.NodeInterface</div><div class="description"><div class="short"><p>Returns the record node by id</p>
</div><div class="long"><p>Returns the record node by id</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.NodeInterface</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-getProxy" class="member inherited"><a href="Ext.data.TreeStore.html#method-getProxy" rel="method-getProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getProxy" class="viewSource">view source</a></div><a name="getProxy"></a><a name="method-getProxy"></a><a href="Ext.data.TreeStore.html#" rel="method-getProxy" class="cls expand">getProxy</a> : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Returns the proxy currently attached to this proxy instance</p>
</div><div class="long"><p>Returns the proxy currently attached to this proxy instance</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The Proxy instance</p>
</li></ul></div></div></div><div id="method-getRootNode" class="member ni"><a href="Ext.data.TreeStore.html#method-getRootNode" rel="method-getRootNode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-method-getRootNode" class="viewSource">view source</a></div><a name="getRootNode"></a><a name="method-getRootNode"></a><a href="Ext.data.TreeStore.html#" rel="method-getRootNode" class="cls expand">getRootNode</a> : Ext.data.NodeInterface</div><div class="description"><div class="short"><p>Returns the root node for this tree.</p>
</div><div class="long"><p>Returns the root node for this tree.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.NodeInterface</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-getSortState" class="member inherited"><a href="Ext.data.TreeStore.html#method-getSortState" rel="method-getSortState" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-getSortState" class="viewSource">view source</a></div><a name="getSortState"></a><a name="method-getSortState"></a><a href="Ext.data.TreeStore.html#" rel="method-getSortState" class="cls expand">getSortState</a> : Object</div><div class="description"><div class="short"><p>Returns an object describing the current sort state of this Store.</p>
</div><div class="long"><p>Returns an object describing the current sort state of this Store.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The sort state of the Store. An object with two properties:<ul>
<li><b>field</b> : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
<li><b>direction</b> : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
</ul>
See <tt><a href="Ext.data.TreeStore.html#sortInfo" rel="Ext.data.TreeStore#sortInfo" class="docClass">sortInfo</a></tt> for additional details.</p>
</li></ul></div></div></div><div id="method-getUpdatedRecords" class="member inherited"><a href="Ext.data.TreeStore.html#method-getUpdatedRecords" rel="method-getUpdatedRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getUpdatedRecords" class="viewSource">view source</a></div><a name="getUpdatedRecords"></a><a name="method-getUpdatedRecords"></a><a href="Ext.data.TreeStore.html#" rel="method-getUpdatedRecords" class="cls expand">getUpdatedRecords</a> : Array</div><div class="description"><div class="short"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
</div><div class="long"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The updated Model instances</p>
</li></ul></div></div></div><div id="method-hasListener" class="member inherited"><a href="Ext.data.TreeStore.html#method-hasListener" rel="method-hasListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-hasListener" class="viewSource">view source</a></div><a name="hasListener"></a><a name="method-hasListener"></a><a href="Ext.data.TreeStore.html#" rel="method-hasListener" class="cls expand">hasListener</a>(
<span class="pre">String eventName</span>)
 : Boolean</div><div class="description"><div class="short"><p>Checks to see if this object has any listeners for a specified event</p>
</div><div class="long"><p>Checks to see if this object has any listeners for a specified event</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to check for</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the event is being listened for, else false</p>
</li></ul></div></div></div><div id="method-initSortable" class="member inherited"><a href="Ext.data.TreeStore.html#method-initSortable" rel="method-initSortable" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-initSortable" class="viewSource">view source</a></div><a name="initSortable"></a><a name="method-initSortable"></a><a href="Ext.data.TreeStore.html#" rel="method-initSortable" class="cls expand">initSortable</a> : void</div><div class="description"><div class="short">Performs initialization of this mixin. Component classes using this mixin should call this method
during their own in...</div><div class="long"><p>Performs initialization of this mixin. Component classes using this mixin should call this method
during their own initialization.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-isLoading" class="member inherited"><a href="Ext.data.TreeStore.html#method-isLoading" rel="method-isLoading" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-isLoading" class="viewSource">view source</a></div><a name="isLoading"></a><a name="method-isLoading"></a><a href="Ext.data.TreeStore.html#" rel="method-isLoading" class="cls expand">isLoading</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if the Store is currently performing a load operation</p>
</div><div class="long"><p>Returns true if the Store is currently performing a load operation</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the Store is currently loading</p>
</li></ul></div></div></div><div id="method-load" class="member ni"><a href="Ext.data.TreeStore.html#method-load" rel="method-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-method-load" class="viewSource">view source</a></div><a name="load"></a><a name="method-load"></a><a href="Ext.data.TreeStore.html#" rel="method-load" class="cls expand">load</a>(
<span class="pre">Object options</span>)
 : void</div><div class="description"><div class="short"><p>Loads the Store using its configured <a href="Ext.data.TreeStore.html#proxy" rel="Ext.data.TreeStore#proxy" class="docClass">proxy</a>.</p>
</div><div class="long"><p>Loads the Store using its configured <a href="Ext.data.TreeStore.html#proxy" rel="Ext.data.TreeStore#proxy" class="docClass">proxy</a>.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Optional config object. This is passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Operation</a>
object that is created and then sent to the proxy's <a href="Ext.data.proxy.Proxy.html#read" rel="Ext.data.proxy.Proxy#read" class="docClass">Ext.data.proxy.Proxy.read</a> function.
The options can also contain a node, which indicates which node is to be loaded. If not specified, it will
default to the root node.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-observe" class="member inherited"><a href="Ext.data.TreeStore.html#method-observe" rel="method-observe" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-observe" class="viewSource">view source</a></div><a name="observe"></a><a name="method-observe"></a><a href="Ext.data.TreeStore.html#" rel="method-observe" class="cls expand">observe</a>(
<span class="pre">Function c, Object listeners</span>)
 : void</div><div class="description"><div class="short">Sets observability on the passed class constructor.

This makes any event fired on any instance of the passed class a...</div><div class="long"><p>Sets observability on the passed class constructor.</p>

<p>This makes any event fired on any instance of the passed class also fire a single event through
the <strong>class</strong> allowing for central handling of events on many instances at once.</p>

<p>Usage:</p>

<pre><code>Ext.util.Observable.observe(Ext.data.Connection);
Ext.data.Connection.on('beforerequest', function(con, options) {
    console.log('Ajax request made to ' + options.url);
});
</code></pre>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">c</span> : Function<div class="sub-desc"><p>The class constructor to make observable.</p>
</div></li><li><span class="pre">listeners</span> : Object<div class="sub-desc"><p>An object containing a series of listeners to add. See <a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a>.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-on" class="member inherited"><a href="Ext.data.TreeStore.html#method-on" rel="method-on" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-on" class="viewSource">view source</a></div><a name="on"></a><a name="method-on"></a><a href="Ext.data.TreeStore.html#" rel="method-on" class="cls expand">on</a>(
<span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
 : void</div><div class="description"><div class="short"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a>.)</p>
</div><div class="long"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a>.)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event to listen for</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-relayEvents" class="member inherited"><a href="Ext.data.TreeStore.html#method-relayEvents" rel="method-relayEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-relayEvents" class="viewSource">view source</a></div><a name="relayEvents"></a><a name="method-relayEvents"></a><a href="Ext.data.TreeStore.html#" rel="method-relayEvents" class="cls expand">relayEvents</a>(
<span class="pre">Object origin, Array events, Object prefix</span>)
 : void</div><div class="description"><div class="short"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
</div><div class="long"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">origin</span> : Object<div class="sub-desc"><p>The Observable whose events this object is to relay.</p>
</div></li><li><span class="pre">events</span> : Array<div class="sub-desc"><p>Array of event names to relay.</p>
</div></li><li><span class="pre">prefix</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-releaseCapture" class="member inherited"><a href="Ext.data.TreeStore.html#method-releaseCapture" rel="method-releaseCapture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-releaseCapture" class="viewSource">view source</a></div><a name="releaseCapture"></a><a name="method-releaseCapture"></a><a href="Ext.data.TreeStore.html#" rel="method-releaseCapture" class="cls expand">releaseCapture</a>(
<span class="pre">Observable o</span>)
 : void</div><div class="description"><div class="short"><p>Removes <b>all</b> added captures from the Observable.</p>
</div><div class="long"><p>Removes <b>all</b> added captures from the Observable.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to release</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeListener" class="member inherited"><a href="Ext.data.TreeStore.html#method-removeListener" rel="method-removeListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeListener" class="viewSource">view source</a></div><a name="removeListener"></a><a name="method-removeListener"></a><a href="Ext.data.TreeStore.html#" rel="method-removeListener" class="cls expand">removeListener</a>(
<span class="pre">String eventName, Function handler, [Object scope]</span>)
 : void</div><div class="description"><div class="short"><p>Removes an event handler.</p>
</div><div class="long"><p>Removes an event handler.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a> call.</b></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeManagedListener" class="member inherited"><a href="Ext.data.TreeStore.html#method-removeManagedListener" rel="method-removeManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeManagedListener" class="viewSource">view source</a></div><a name="removeManagedListener"></a><a name="method-removeManagedListener"></a><a href="Ext.data.TreeStore.html#" rel="method-removeManagedListener" class="cls expand">removeManagedListener</a>(
<span class="pre">Observable|Element item, Object|String ename, Function fn, Object scope</span>)
 : void</div><div class="description"><div class="short"><p>Removes listeners that were added by the <a href="Ext.data.TreeStore.html#mon" rel="Ext.data.TreeStore#mon" class="docClass">mon</a> method.</p>
</div><div class="long"><p>Removes listeners that were added by the <a href="Ext.data.TreeStore.html#mon" rel="Ext.data.TreeStore#mon" class="docClass">mon</a> method.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable|Element<div class="sub-desc"><p>The item from which to remove a listener/listeners.</p>
</div></li><li><span class="pre">ename</span> : Object|String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the handler function.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the scope (<code>this</code> reference) in which the handler function is executed.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-resumeEvents" class="member inherited"><a href="Ext.data.TreeStore.html#method-resumeEvents" rel="method-resumeEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-resumeEvents" class="viewSource">view source</a></div><a name="resumeEvents"></a><a name="method-resumeEvents"></a><a href="Ext.data.TreeStore.html#" rel="method-resumeEvents" class="cls expand">resumeEvents</a> : void</div><div class="description"><div class="short">Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
event...</div><div class="long"><p>Resume firing events. (see <a href="Ext.data.TreeStore.html#suspendEvents" rel="Ext.data.TreeStore#suspendEvents" class="docClass">suspendEvents</a>)
If events were suspended using the <code><b>queueSuspended</b></code> parameter, then all
events fired during event suspension will be sent to any listeners now.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-setProxy" class="member inherited"><a href="Ext.data.TreeStore.html#method-setProxy" rel="method-setProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-setProxy" class="viewSource">view source</a></div><a name="setProxy"></a><a name="method-setProxy"></a><a href="Ext.data.TreeStore.html#" rel="method-setProxy" class="cls expand">setProxy</a>(
<span class="pre">String|Object|Ext.data.proxy.Proxy proxy</span>)
 : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
</div><div class="long"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">proxy</span> : String|Object|Ext.data.proxy.Proxy<div class="sub-desc"><p>The new Proxy, which can be either a type string, a configuration object
or an <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Ext.data.proxy.Proxy</a> instance</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The attached Proxy object</p>
</li></ul></div></div></div><div id="method-setRootNode" class="member ni"><a href="Ext.data.TreeStore.html#method-setRootNode" rel="method-setRootNode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-method-setRootNode" class="viewSource">view source</a></div><a name="setRootNode"></a><a name="method-setRootNode"></a><a href="Ext.data.TreeStore.html#" rel="method-setRootNode" class="cls expand">setRootNode</a>(
<span class="pre">Ext.data.Model/Ext.data.NodeInterface root</span>)
 : Ext.data.NodeInterface</div><div class="description"><div class="short"><p>Sets the root node for this store</p>
</div><div class="long"><p>Sets the root node for this store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">root</span> : Ext.data.Model/Ext.data.NodeInterface<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.NodeInterface</span>&nbsp; &nbsp;<p>The new root</p>
</li></ul></div></div></div><div id="method-sort" class="member inherited"><a href="Ext.data.TreeStore.html#method-sort" rel="method-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="method-sort"></a><a href="Ext.data.TreeStore.html#" rel="method-sort" class="cls expand">sort</a>(
<span class="pre">String|Array sorters, String direction, Object where, Object doSort</span>)
 : void</div><div class="description"><div class="short">Sorts the data in the Store by one or more of its properties. Example usage:


//sort by a single field
myStore.sort(...</div><div class="long"><p>Sorts the data in the Store by one or more of its properties. Example usage:</p>


<pre><code>//sort by a single field
myStore.sort('myField', 'DESC');

//sorting by multiple fields
myStore.sort([
    {
        property : 'age',
        direction: 'ASC'
    },
    {
        property : 'name',
        direction: 'DESC'
    }
]);
</code></pre>


<p>Internally, Store converts the passed arguments into an array of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Ext.util.Sorter</a> instances, and delegates the actual
sorting to its internal <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a>.</p>


<p>When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:</p>


<pre><code>store.sort('myField');
store.sort('myField');
     </code></pre>


<p>Is equivalent to this code, because Store handles the toggling automatically:</p>


<pre><code>store.sort('myField', 'ASC');
store.sort('myField', 'DESC');
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">sorters</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
or an Array of sorter configurations.</p>
</div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to sort the data by. Defaults to "ASC".</p>
</div></li><li><span class="pre">where</span> : Object<div class="sub-desc">
</div></li><li><span class="pre">doSort</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-suspendEvents" class="member inherited"><a href="Ext.data.TreeStore.html#method-suspendEvents" rel="method-suspendEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-suspendEvents" class="viewSource">view source</a></div><a name="suspendEvents"></a><a name="method-suspendEvents"></a><a href="Ext.data.TreeStore.html#" rel="method-suspendEvents" class="cls expand">suspendEvents</a>(
<span class="pre">Boolean queueSuspended</span>)
 : void</div><div class="description"><div class="short"><p>Suspend the firing of all events. (see <a href="Ext.data.TreeStore.html#resumeEvents" rel="Ext.data.TreeStore#resumeEvents" class="docClass">resumeEvents</a>)</p>
</div><div class="long"><p>Suspend the firing of all events. (see <a href="Ext.data.TreeStore.html#resumeEvents" rel="Ext.data.TreeStore#resumeEvents" class="docClass">resumeEvents</a>)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">queueSuspended</span> : Boolean<div class="sub-desc"><p>Pass as true to queue up suspended events to be fired
after the <a href="Ext.data.TreeStore.html#resumeEvents" rel="Ext.data.TreeStore#resumeEvents" class="docClass">resumeEvents</a> call instead of discarding all suspended events;</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-sync" class="member inherited"><a href="Ext.data.TreeStore.html#method-sync" rel="method-sync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-sync" class="viewSource">view source</a></div><a name="sync"></a><a name="method-sync"></a><a href="Ext.data.TreeStore.html#" rel="method-sync" class="cls expand">sync</a> : void</div><div class="description"><div class="short">Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
and deleted records in ...</div><div class="long"><p>Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
and deleted records in the store, updating the Store's internal representation of the records
as each operation completes.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-un" class="member inherited"><a href="Ext.data.TreeStore.html#method-un" rel="method-un" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-un" class="viewSource">view source</a></div><a name="un"></a><a name="method-un"></a><a href="Ext.data.TreeStore.html#" rel="method-un" class="cls expand">un</a>(
<span class="pre">String eventName, Function handler, [Object scope]</span>)
 : void</div><div class="description"><div class="short"><p>Removes an event handler (shorthand for <a href="Ext.data.TreeStore.html#removeListener" rel="Ext.data.TreeStore#removeListener" class="docClass">removeListener</a>.)</p>
</div><div class="long"><p>Removes an event handler (shorthand for <a href="Ext.data.TreeStore.html#removeListener" rel="Ext.data.TreeStore#removeListener" class="docClass">removeListener</a>.)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.TreeStore.html#addListener" rel="Ext.data.TreeStore#addListener" class="docClass">addListener</a> call.</b></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div></div><div class="m-events"><a name="events"></a><div class="definedBy">Defined By</div><h3 class="evt p">Events</h3><div id="event-add" class="member f inherited"><a href="Ext.data.TreeStore.html#event-add" rel="event-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-add" class="viewSource">view source</a></div><a name="add"></a><a name="event-add"></a><a href="Ext.data.TreeStore.html#" rel="event-add" class="cls expand">add</a>(
<span class="pre">Ext.data.Store store, Array records, Number index</span>)
</div><div class="description"><div class="short"><p>Fired when a Model instance has been added to this Store</p>
</div><div class="long"><p>Fired when a Model instance has been added to this Store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The store</p>
</div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>The Model instances that were added</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index at which the instances were inserted</p>
</div></li></ul></div></div></div><div id="event-append" class="member ni"><a href="Ext.data.TreeStore.html#event-append" rel="event-append" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-append" class="viewSource">view source</a></div><a name="append"></a><a name="event-append"></a><a href="Ext.data.TreeStore.html#" rel="event-append" class="cls expand">append</a>(
<span class="pre">Tree tree, Node parent, Node node, Number index</span>)
</div><div class="description"><div class="short"><p>Fires when a new child node is appended to a node in this store's tree.</p>
</div><div class="long"><p>Fires when a new child node is appended to a node in this store's tree.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The newly appended node</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the newly appended node</p>
</div></li></ul></div></div></div><div id="event-beforeappend" class="member ni"><a href="Ext.data.TreeStore.html#event-beforeappend" rel="event-beforeappend" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforeappend" class="viewSource">view source</a></div><a name="beforeappend"></a><a name="event-beforeappend"></a><a href="Ext.data.TreeStore.html#" rel="event-beforeappend" class="cls expand">beforeappend</a>(
<span class="pre">Tree tree, Node parent, Node node</span>)
</div><div class="description"><div class="short"><p>Fires before a new child is appended to a node in this store's tree, return false to cancel the append.</p>
</div><div class="long"><p>Fires before a new child is appended to a node in this store's tree, return false to cancel the append.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be appended</p>
</div></li></ul></div></div></div><div id="event-beforecollapse" class="member ni"><a href="Ext.data.TreeStore.html#event-beforecollapse" rel="event-beforecollapse" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforecollapse" class="viewSource">view source</a></div><a name="beforecollapse"></a><a name="event-beforecollapse"></a><a href="Ext.data.TreeStore.html#" rel="event-beforecollapse" class="cls expand">beforecollapse</a>(
<span class="pre">Node this</span>)
</div><div class="description"><div class="short"><p>Fires before this node is collapsed.</p>
</div><div class="long"><p>Fires before this node is collapsed.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The collapsing node</p>
</div></li></ul></div></div></div><div id="event-beforeexpand" class="member ni"><a href="Ext.data.TreeStore.html#event-beforeexpand" rel="event-beforeexpand" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforeexpand" class="viewSource">view source</a></div><a name="beforeexpand"></a><a name="event-beforeexpand"></a><a href="Ext.data.TreeStore.html#" rel="event-beforeexpand" class="cls expand">beforeexpand</a>(
<span class="pre">Node this</span>)
</div><div class="description"><div class="short"><p>Fires before this node is expanded.</p>
</div><div class="long"><p>Fires before this node is expanded.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The expanding node</p>
</div></li></ul></div></div></div><div id="event-beforeinsert" class="member ni"><a href="Ext.data.TreeStore.html#event-beforeinsert" rel="event-beforeinsert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforeinsert" class="viewSource">view source</a></div><a name="beforeinsert"></a><a name="event-beforeinsert"></a><a href="Ext.data.TreeStore.html#" rel="event-beforeinsert" class="cls expand">beforeinsert</a>(
<span class="pre">Tree tree, Node parent, Node node, Node refNode</span>)
</div><div class="description"><div class="short"><p>Fires before a new child is inserted in a node in this store's tree, return false to cancel the insert.</p>
</div><div class="long"><p>Fires before a new child is inserted in a node in this store's tree, return false to cancel the insert.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be inserted</p>
</div></li><li><span class="pre">refNode</span> : Node<div class="sub-desc"><p>The child node the node is being inserted before</p>
</div></li></ul></div></div></div><div id="event-beforeload" class="member inherited"><a href="Ext.data.TreeStore.html#event-beforeload" rel="event-beforeload" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforeload" class="viewSource">view source</a></div><a name="beforeload"></a><a name="event-beforeload"></a><a href="Ext.data.TreeStore.html#" rel="event-beforeload" class="cls expand">beforeload</a>(
<span class="pre">Ext.data.Store store, Ext.data.Operation operation</span>)
</div><div class="description"><div class="short"><p>Event description</p>
</div><div class="long"><p>Event description</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>This Store</p>
</div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object that will be passed to the Proxy to load the Store</p>
</div></li></ul></div></div></div><div id="event-beforemove" class="member ni"><a href="Ext.data.TreeStore.html#event-beforemove" rel="event-beforemove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforemove" class="viewSource">view source</a></div><a name="beforemove"></a><a name="event-beforemove"></a><a href="Ext.data.TreeStore.html#" rel="event-beforemove" class="cls expand">beforemove</a>(
<span class="pre">Tree tree, Node node, Node oldParent, Node newParent, Number index</span>)
</div><div class="description"><div class="short"><p>Fires before a node is moved to a new location in the store's tree. Return false to cancel the move.</p>
</div><div class="long"><p>Fires before a node is moved to a new location in the store's tree. Return false to cancel the move.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The node being moved</p>
</div></li><li><span class="pre">oldParent</span> : Node<div class="sub-desc"><p>The parent of the node</p>
</div></li><li><span class="pre">newParent</span> : Node<div class="sub-desc"><p>The new parent the node is moving to</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index it is being moved to</p>
</div></li></ul></div></div></div><div id="event-beforeremove" class="member ni"><a href="Ext.data.TreeStore.html#event-beforeremove" rel="event-beforeremove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-beforeremove" class="viewSource">view source</a></div><a name="beforeremove"></a><a name="event-beforeremove"></a><a href="Ext.data.TreeStore.html#" rel="event-beforeremove" class="cls expand">beforeremove</a>(
<span class="pre">Tree tree, Node parent, Node node</span>)
</div><div class="description"><div class="short"><p>Fires before a child is removed from a node in this store's tree, return false to cancel the remove.</p>
</div><div class="long"><p>Fires before a child is removed from a node in this store's tree, return false to cancel the remove.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be removed</p>
</div></li></ul></div></div></div><div id="event-beforesync" class="member inherited"><a href="Ext.data.TreeStore.html#event-beforesync" rel="event-beforesync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforesync" class="viewSource">view source</a></div><a name="beforesync"></a><a name="event-beforesync"></a><a href="Ext.data.TreeStore.html#" rel="event-beforesync" class="cls expand">beforesync</a>(
<span class="pre">Object options</span>)
</div><div class="description"><div class="short"><p>Called before a call to <a href="Ext.data.TreeStore.html#sync" rel="Ext.data.TreeStore#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
</div><div class="long"><p>Called before a call to <a href="Ext.data.TreeStore.html#sync" rel="Ext.data.TreeStore#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Hash of all records to be synchronized, broken down into create, update and destroy</p>
</div></li></ul></div></div></div><div id="event-clear" class="member inherited"><a href="Ext.data.TreeStore.html#event-clear" rel="event-clear" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-clear" class="viewSource">view source</a></div><a name="clear"></a><a name="event-clear"></a><a href="Ext.data.TreeStore.html#" rel="event-clear" class="cls expand">clear</a>(
<span class="pre">Ext.data.Store this</span>)
</div><div class="description"><div class="short"><p>Fired after the <a href="Ext.data.TreeStore.html#removeAll" rel="Ext.data.TreeStore#removeAll" class="docClass">removeAll</a> method is called.</p>
</div><div class="long"><p>Fired after the <a href="Ext.data.TreeStore.html#removeAll" rel="Ext.data.TreeStore#removeAll" class="docClass">removeAll</a> method is called.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc">
</div></li></ul></div></div></div><div id="event-collapse" class="member ni"><a href="Ext.data.TreeStore.html#event-collapse" rel="event-collapse" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-collapse" class="viewSource">view source</a></div><a name="collapse"></a><a name="event-collapse"></a><a href="Ext.data.TreeStore.html#" rel="event-collapse" class="cls expand">collapse</a>(
<span class="pre">Node this</span>)
</div><div class="description"><div class="short"><p>Fires when this node is collapsed.</p>
</div><div class="long"><p>Fires when this node is collapsed.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The collapsing node</p>
</div></li></ul></div></div></div><div id="event-datachanged" class="member inherited"><a href="Ext.data.TreeStore.html#event-datachanged" rel="event-datachanged" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-datachanged" class="viewSource">view source</a></div><a name="datachanged"></a><a name="event-datachanged"></a><a href="Ext.data.TreeStore.html#" rel="event-datachanged" class="cls expand">datachanged</a>(
<span class="pre">Ext.data.Store this</span>)
</div><div class="description"><div class="short">Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
or ...</div><div class="long"><p>Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
or updating the data in existing records</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc"><p>The data store</p>
</div></li></ul></div></div></div><div id="event-expand" class="member ni"><a href="Ext.data.TreeStore.html#event-expand" rel="event-expand" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-expand" class="viewSource">view source</a></div><a name="expand"></a><a name="event-expand"></a><a href="Ext.data.TreeStore.html#" rel="event-expand" class="cls expand">expand</a>(
<span class="pre">Node this</span>)
</div><div class="description"><div class="short"><p>Fires when this node is expanded.</p>
</div><div class="long"><p>Fires when this node is expanded.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The expanding node</p>
</div></li></ul></div></div></div><div id="event-insert" class="member ni"><a href="Ext.data.TreeStore.html#event-insert" rel="event-insert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-insert" class="viewSource">view source</a></div><a name="insert"></a><a name="event-insert"></a><a href="Ext.data.TreeStore.html#" rel="event-insert" class="cls expand">insert</a>(
<span class="pre">Tree tree, Node parent, Node node, Node refNode</span>)
</div><div class="description"><div class="short"><p>Fires when a new child node is inserted in a node in this store's tree.</p>
</div><div class="long"><p>Fires when a new child node is inserted in a node in this store's tree.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node inserted</p>
</div></li><li><span class="pre">refNode</span> : Node<div class="sub-desc"><p>The child node the node was inserted before</p>
</div></li></ul></div></div></div><div id="event-load" class="member inherited"><a href="Ext.data.TreeStore.html#event-load" rel="event-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-load" class="viewSource">view source</a></div><a name="load"></a><a name="event-load"></a><a href="Ext.data.TreeStore.html#" rel="event-load" class="cls expand">load</a>(
<span class="pre">Ext.data.Store this, Array records, Boolean successful</span>)
</div><div class="description"><div class="short"><p>Fires whenever the store reads data from a remote data source.</p>
</div><div class="long"><p>Fires whenever the store reads data from a remote data source.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc">
</div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>An array of records</p>
</div></li><li><span class="pre">successful</span> : Boolean<div class="sub-desc"><p>True if the operation was successful.</p>
</div></li></ul></div></div></div><div id="event-move" class="member ni"><a href="Ext.data.TreeStore.html#event-move" rel="event-move" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-move" class="viewSource">view source</a></div><a name="move"></a><a name="event-move"></a><a href="Ext.data.TreeStore.html#" rel="event-move" class="cls expand">move</a>(
<span class="pre">Tree tree, Node node, Node oldParent, Node newParent, Number index</span>)
</div><div class="description"><div class="short"><p>Fires when a node is moved to a new location in the store's tree</p>
</div><div class="long"><p>Fires when a node is moved to a new location in the store's tree</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The node moved</p>
</div></li><li><span class="pre">oldParent</span> : Node<div class="sub-desc"><p>The old parent of this node</p>
</div></li><li><span class="pre">newParent</span> : Node<div class="sub-desc"><p>The new parent of this node</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index it was moved to</p>
</div></li></ul></div></div></div><div id="event-remove" class="member ni"><a href="Ext.data.TreeStore.html#event-remove" rel="event-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="event-remove"></a><a href="Ext.data.TreeStore.html#" rel="event-remove" class="cls expand">remove</a>(
<span class="pre">Tree tree, Node parent, Node node</span>)
</div><div class="description"><div class="short"><p>Fires when a child node is removed from a node in this store's tree.</p>
</div><div class="long"><p>Fires when a child node is removed from a node in this store's tree.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">tree</span> : Tree<div class="sub-desc"><p>The owner tree</p>
</div></li><li><span class="pre">parent</span> : Node<div class="sub-desc"><p>The parent node</p>
</div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node removed</p>
</div></li></ul></div></div></div><div id="event-rootchange" class="member ni"><a href="Ext.data.TreeStore.html#event-rootchange" rel="event-rootchange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-rootchange" class="viewSource">view source</a></div><a name="rootchange"></a><a name="event-rootchange"></a><a href="Ext.data.TreeStore.html#" rel="event-rootchange" class="cls expand">rootchange</a>(
<span class="pre">Ext.data.TreeStore store, Node The</span>)
</div><div class="description"><div class="short"><p>Fires when the root node on this TreeStore is changed.</p>
</div><div class="long"><p>Fires when the root node on this TreeStore is changed.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.TreeStore<div class="sub-desc"><p>This TreeStore</p>
</div></li><li><span class="pre">The</span> : Node<div class="sub-desc"><p>new root node.</p>
</div></li></ul></div></div></div><div id="event-sort" class="member ni"><a href="Ext.data.TreeStore.html#event-sort" rel="event-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.TreeStore.html" class="definedIn docClass">Ext.data.TreeStore</a><br/><a href="../source/TreeStore.html#Ext-data.TreeStore-event-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="event-sort"></a><a href="Ext.data.TreeStore.html#" rel="event-sort" class="cls expand">sort</a>(
<span class="pre">Node node</span>)
</div><div class="description"><div class="short"><p>Fires when this TreeStore is sorted.</p>
</div><div class="long"><p>Fires when this TreeStore is sorted.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The node that is sorted.</p>
</div></li></ul></div></div></div><div id="event-update" class="member inherited"><a href="Ext.data.TreeStore.html#event-update" rel="event-update" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-update" class="viewSource">view source</a></div><a name="update"></a><a name="event-update"></a><a href="Ext.data.TreeStore.html#" rel="event-update" class="cls expand">update</a>(
<span class="pre">Store this, Ext.data.Model record, String operation</span>)
</div><div class="description"><div class="short"><p>Fires when a Record has been updated</p>
</div><div class="long"><p>Fires when a Record has been updated</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Store<div class="sub-desc">
</div></li><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The Model instance that was updated</p>
</div></li><li><span class="pre">operation</span> : String<div class="sub-desc"><p>The update operation being performed. Value may be one of:</p>

<pre><code>               Ext.data.Model.EDIT
               Ext.data.Model.REJECT
               Ext.data.Model.COMMIT
</code></pre>

</div></li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>